﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl<HuynhQuangWebsite.Models.HomeAdminListViewModel>" %>
<%@ Import Namespace="THS.HtmlHelpers" %>
<div class="widget">
    <div class="title">
        <span class="titleIcon"><input type="checkbox" id="titleCheck" name="titleCheck" /></span><h6>Danh sách các dịch vụ</h6>
        <div style="float:right"><a href="<%=Url.Action("Create","ManageService") %>" title="" class="button greyishB" style="margin: 5px;"><img src="../../Images/adminSite/icons/light/create.png" alt="" class="icon" /><span>THÊM MỚI DỊCH VỤ</span></a></div>
    </div>
    <table cellpadding="0" cellspacing="0" width="100%" class="sTable withCheck mTable" id="checkAll">
        <thead>
            <tr>
                <td><img src="../../Images/adminSite/icons/tableArrows.png" alt="" /></td>
                <td style="width:10%">Ảnh đại điện</td>
                <td style="width:25%">Dịch vụ</td>
                <td style="width:50%" class="sortCol"><div>Thông tin<span></span></div></td>
                <td>Chức năng</td>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td colspan="6">
                    <div class="itemActions">
                        <label>Chức năng:</label>
                        <select>
                            <option value="">Chọn chức năng...</option>
                            <option value="Edit">Sửa</option>
                            <option value="Delete">Xóa</option>
                            <option value="Move">di chuyển</option>
                        </select>
                    </div>
                    <div class="tPagination">
                        <ul>
                            <li class="prev"><a href="#" title=""></a></li>
                            <li><a href="#" title="">1</a></li>
                            <li><a href="#" title="">2</a></li>
                            <li><a href="#" title="">3</a></li>
                            <li><a href="#" title="">4</a></li>
                            <li><a href="#" title="">5</a></li>
                            <li><a href="#" title="">6</a></li>
                            <li>...</li>
                            <li><a href="#" title="">20</a></li>
                            <li class="next"><a href="#" title=""></a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        </tfoot>
        <tbody>
        <%if (Model.ServiceList != null)
          {
              foreach (var item in Model.ServiceList)
              {%>
            <tr>
                <td><input type="checkbox" id="titleCheck2" name="checkRow" /></td>
                <td align="center"><a href="../../Images/adminSite/big.png" title="" rel="lightbox"><img src="<%=item.ServiceImgThumb %>" alt="" /></a></td>
                <td><a href="<%=Url.Action("Detail", "ManageService", new {id = item.ServiceID}) %>" title=""><%=item.ServiceName %></a></td>
                <td><%=item.ServiceDetails %></td>
                <td class="actBtns">
                    <a href="<%=Url.Action("Detail", "ManageService", new {id = item.ServiceID}) %>" title="Update" class="tipS"><img src="../../Images/adminSite/icons/dark/pencil.png" alt="" /></a>
                    <a href="<%=Url.Action("Delete", "ManageService", new {id = item.ServiceID}) %>" title="Remove" class="tipS"><img src="../../Images/adminSite/icons/dark/close.png" alt="" /></a>
                </td>
            </tr>
            <%}
          } %>
        </tbody>
    </table>
</div>